package com.baizhi.cmfz.appcontroller;

import com.baizhi.cmfz.service.ArticelService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("/article")
public class ArticleAppController {

	@Resource
	private ArticelService articelService;

	@GetMapping("/selectArticle/{limit}")
	public Map selectArticle(@PathVariable("limit") int limit){
		return articelService.selectArticelPage(1,limit,null);
	}
}
